<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 2018/10/9
 * Time: 14:20
 */

use common\components\tools\Html;
use kartik\icons\Icon;
?>

<h2>
    <?=Html::a($model->title, $model->url) ?>
</h2>
<p class="lead">
</p>
<p>
    <?=\kartik\icons\Icon::show('clock-o') ?>
    发布于 <?= date("Y-m-d H:i", $model->created_at) ?>
    <?=\kartik\icons\Icon::show('user-circle-o') ?>
    发布者 <?=Html::a($model->createdBy->profileName, $model->createdBy->profileUrl) ?></p>
<hr>
<?php if ($model->pre_logo): ?>
    <?=Html::a(Html::img($model->pre_logo, ['class' => "img-responsive img-hover"]), $model->url) ?>
    <hr>
<?php endif; ?>
<?php if ($model->desc): ?>
<p>
    <?=$model->desc ?>
    <hr>
</p>
<?php endif; ?>